#include "album.h"

namespace plok {

    Album::Album()
    {
    }

    Album::Album(std::string title,Artist * artist) :
            m_title(title), m_artist(artist)
    {
    }

    void Album::set_title(std::string title)
    {
        this->m_title = title;
    }

    void Album::set_artist(plok::Artist * artist)
    {
        this->m_artist = artist;
    }

    void Album::add_track(plok::Track * track)
    {
        this->m_tracks.push_back(track);
    }

    void Album::remove_all_tracks()
    {
        this->m_tracks.empty();
    }

    const std::vector<plok::Track*> & Album::get_tracks() const
    {
        return this->m_tracks;
    }

    const std::string & Album::get_title() const
    {
        return this->m_title;
    }

    const plok::Artist * Album::get_artist() const {
        return this->m_artist;
    }

}
